var $ = require("../../utils/Ajax.js");
Page({
  data: {

  },

  onLoad: function (options) {
    wx.setNavigationBarTitle({
      title: "关于我们"
    })
  },

  // 点击
  AboutUs: function(e){
    var Id = e.currentTarget.dataset.id;
    $.Ajax("api/about","GET",{
      id: Id
    },function(res){
      if(res.s){
        wx.setStorageSync('About', res.d.about.content);
        wx.navigateTo({
          url: '../AboutUs_/AboutUs_',
        })
      }else{
        wx.showToast({
          title: res.m,
          icon: 'none',
          duration: 1500,
          mask: true
        })
      }
    })
  }
})